-- GENERATED SPELL FOR [Witherbark Scalper] --


function spell0_2649(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2649', 0, 1)
end

function spell1_2649(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2649', 500, 1)
end

function Sorts_2649(pUnit, Event)
local choix_sorts_2649 = math.random(0, 1)
if choix_sorts_2649 == 0 then
pUnit:RegisterEvent('spell0_2649', 1, 1)
end
if choix_sorts_2649 == 1 then
pUnit:RegisterEvent('spell1_2649', 1, 1)
end
end

function mob2649_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2649', math.random(1500, 3000), 1)
end

function mob2649_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2649_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2649_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2649, 1, 'mob2649_Action')
RegisterUnitEvent(2649, 2, 'mob2649_Leave')
RegisterUnitEvent(2649, 3, 'mob2649_Kill')
RegisterUnitEvent(2649, 4, 'mob2649_Die')
